﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace OVS.Domain
{
    [ActiveRecord("players")]
    public class Player:EntityBase
    {
        [Property(NotNull = true, Length = 4)]
        [Required(ErrorMessage = "请填写选手编号")]
        [Display(Name = "选手编号")]
        public string PlayerNO { get; set; }

        [Property(NotNull = true, Length = 20)]
        [Required(ErrorMessage = "请填写选手名称")]
        [Display(Name = "选手名称")]
        public string PlayerName { get; set; }

        [Property(NotNull =true,Length =100)]
        [Required(ErrorMessage ="请添加选手照片")]
        public string PlayerImage { get; set; }
    }
}
